package com.fivestyle.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.fivestyle.common.result.R;
import com.fivestyle.entity.Book;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张代钊
 * @since 2021-08-04
 */
public interface BookService extends IService<Book> {

    R maxVisitBook(Long current, Long size);

    R addBook(Book book);

    Integer bookTotal();

    R getBookListByType(String type);

    R getBookListByName(String json);

//    查询类型数量
    ArrayList<HashMap<String,Object>> pie();
}
